Skip to content

fix(proxy)!: stop labelling management and health rejections as auth failures - #48739

Merged
mateo-berri merged 11 commits into
BerriAI:mainfrom
tavren27:litellm_management_error_types_main
Oct 29, 2026
Merged

mateo-berri merged 11 commits into
BerriAI:mainfrom
tavren27:litellm_management_error_types_main

Conversation

@tavren27

@tavren27 tavren27 commented Oct 28, 2026 •

Copy link
Copy Markdown
Contributor

Management and health routes like /team/info, /user/update and /key/update label every rejection type: auth_error, even a 404 for a missing team or a 400 for a bad budget_duration, so a script branching on type re-mints a key that was never the problem

Now their 13 catch-all handlers name the error by its status, so a 400 or 404 says invalid_request_error, a 500 says internal_server_error, and a 401 or 403 the proxy raises keeps auth_error. Database outages and failovers answer 503, and the made-up Authentication Error, prefix is gone

It replaces #47778 and the older #39558

Original

Breaking change: clients that branch on these routes' error type or param, or on their status during outages, should check retry and alert rules

TLDR

Problem this solves:

  • Management routes label every rejection type: auth_error
  • Even a missing team or a bad budget_duration says so

How it solves it:

  • The catch-all handlers read the type off the exception
  • A 401 or 403 the proxy raises keeps auth_error
  • A ProxyException, real auth and SSO keep their types

Intentional product change: these routes' 400, 404 and 500 errors stop saying auth_error, and param is null instead of "None". Database outages and failovers, failed config reads, queued upstream failures, and errors that carry their own status, like an upstream timeout's 408, answer new statuses. Keeping every status, as the replaced PRs did, would leave outages at 400 or 500, which retry logic reads as the caller's fault

User Flow

Before: an admin scripting the management API is told their credentials failed when the request body was the problem

  1. They send POST https://litellm-domain/user/update with {"user_id":"u1","budget_duration":"not-a-duration"} and a valid admin key
  2. It comes back 400 with "type":"auth_error" and a message starting Authentication Error,
  3. GET https://litellm-domain/team/info?team_id=no-such-team comes back 404 with "type":"auth_error" too
  4. Their script sees an auth failure and re-mints a key that was never the problem

After: the same requests are labelled for what went wrong

  1. They send the same POST https://litellm-domain/user/update
  2. It comes back 400 with "type":"invalid_request_error" and the validation message, still wrapped in {'error': ...} as on main
  3. GET https://litellm-domain/team/info?team_id=no-such-team comes back 404 with "type":"invalid_request_error"
  4. Their script surfaces the message, and a bad key still gets 401 with its own auth type

Pre-Submission checklist

Please complete all items before asking a LiteLLM maintainer to review your PR

  • I have added meaningful tests
  • The handful of test files covering my change pass locally, e.g. uv run pytest tests/unit/<your_test_file>.py -v. Leave the suites (make test-unit-*, make test-unit) to CI: it finishes in ~15 minutes where a laptop takes an hour or more
  • My PR passes all required CI/CD checks (e.g., lint, schema.d.ts sync check, etc.)
  • My PR's scope is as isolated as possible; it only solves 1 specific problem
  • Every automated review on my PR's latest commit has finished, and I have addressed or replied to each of its findings before requesting a maintainer review

Delays in PR merge?

If you're seeing a delay in your PR being merged, ping the LiteLLM Team on Slack (#pr-review).

Screenshots / Proof of Fix

Case Before After
2. GET /team/info, missing team 404 auth_error 404 invalid_request_error
3. POST /user/update, bad budget_duration 400 auth_error 400 invalid_request_error
4. POST /key/update, bad budget_duration 400 auth_error 400 invalid_request_error
5. POST /organization/member_add, missing org 404 auth_error 404 invalid_request_error
6. POST /model/delete, missing id 400 auth_error 400 invalid_request_error
7. POST /model/update, missing id 400 auth_error 400 invalid_request_error
8. POST /model/new, duplicate id 500 auth_error 500 internal_server_error
9. GET /health/services, unknown service 400 auth_error 400 invalid_request_error
12. POST /config/update, non-string callback 400 auth_error 400 invalid_request_error
14. GET /key/list, bad status 400 internal_server_error 400 invalid_request_error
24. POST /queue/chat/completions, upstream answers 503 400 auth_error 503 internal_server_error
25. GET /get/config/callbacks, config file emptied 400 auth_error 500 internal_server_error
27. POST /queue/chat/completions, Anthropic answers 404 400 auth_error 404 invalid_request_error
30. POST /queue/chat/completions, Anthropic rejects the key 400 auth_error 401 authentication_error
10 database outage cases, each 503 `no_db_connection` after
Case Before After
18. GET /key/list, database offline 500 internal_server_error 503 no_db_connection
19. GET /key/aliases, database offline 500 internal_server_error 503 no_db_connection
20. POST /key/update, database offline 400 auth_error 503 no_db_connection
21. GET /key/list, database host unreachable 500 internal_server_error 503 no_db_connection
22. GET /key/aliases, database host unreachable 500 internal_server_error 503 no_db_connection
23. POST /key/update, database host unreachable 400 auth_error 503 no_db_connection
26. POST /key/update, team table locked 404 auth_error 503 no_db_connection
29. POST /model/new, database host unreachable 500 auth_error 503 no_db_connection
31. POST /key/update, database failed over to read-only 400 auth_error 503 no_db_connection
32. POST /key/update, reconnected read-only session 400 auth_error 503 no_db_connection
8 controls that answer the same on both legs
Case Before After
1. Sanity, real Anthropic call 200 200
10. POST /queue/chat/completions, no priority 400 invalid_request_error 400 invalid_request_error
11. POST /queue/chat/completions, unknown model 400 invalid_request_error 400 invalid_request_error
13. GET /get/config/callbacks, scalar callback stored 200 200
15. GET /team/info, caller outside team 403 auth_error 403 auth_error
16. Control, unknown key 401 token_not_found_in_db 401 token_not_found_in_db
17. Control, wrong UI password 401 auth_error 401 auth_error
28. POST /queue/chat/completions, Anthropic answers 200 200
Shared setup

Two live proxies on the GCE QA box, same config, same cases, same order, differing only in the commit they booted from. Each ran two uvicorn workers against its own Postgres database, with real Anthropic credentials, and every call uses a valid admin key unless the case says otherwise. RUN=$(date +%s) keeps the ids cases 8 and 15 create unique per run

model_list:
  - model_name: claude-haiku-5-5
    litellm_params:
      model: anthropic/claude-haiku-5-5
      api_key: os.environ/ANTHROPIC_API_KEY

general_settings:
  store_model_in_db: true
python litellm/proxy/proxy_cli.py --config config.yaml --port <port> --num_workers 2 --use_prisma_db_push

Cases 18 to 20 take that proxy's database offline on the shared Postgres server and bring it back afterwards

psql "$ADMIN_URL" -c "ALTER DATABASE \"$DB\" WITH ALLOW_CONNECTIONS false"
psql "$ADMIN_URL" -c "SELECT pg_terminate_backend(pid) FROM pg_stat_activity WHERE datname='$DB'"
# cases 18 to 20
psql "$ADMIN_URL" -c "ALTER DATABASE \"$DB\" WITH ALLOW_CONNECTIONS true"

Cases 24 to 26 run on the same two proxies after the database is back. Case 24 points a new model at a local server that answers 503, case 25 empties the shared config file for one call, and case 26 holds a table lock long enough for the proxy's 10 second lookup deadline to pass

Cases 31 and 32 run after them on the same two proxies and reset default_transaction_read_only afterwards

Cases 27, 28 and 30 run there last, with real Anthropic calls. Case 27 points a new model at a model name Anthropic answers 404 for, and case 30 adds a deployment whose Anthropic key Anthropic rejects

Cases 21 to 23 and 29 boot one more proxy per leg, same config and two workers, whose DATABASE_URL points at a local TCP forwarder in front of the same Postgres server. GET /key/list answers 200 through it, then the forwarder is stopped so the database host refuses every new connection, the way a dropped database node or network partition looks to the proxy

Before (83ae1bd)

2. GET /team/info, missing team

  1. Run:
curl -sS "$PROXY/team/info?team_id=no-such-team-qa" -H "Authorization: Bearer $LITELLM_MASTER_KEY"
  1. Observed, HTTP 404:
{"error":{"message":"{'message': 'Team not found, passed team id: no-such-team-qa.'}","type":"auth_error","param":"None","code":"404"}}
The other 31 cases

1. Sanity, real Anthropic call

  1. Run:
curl -sS -X POST "$PROXY/v1/chat/completions" -H "Authorization: Bearer $LITELLM_MASTER_KEY" -H 'Content-Type: application/json' \
  -d '{"model":"claude-haiku-5-5","messages":[{"role":"user","content":"say slp-qa-ok and nothing else"}],"max_tokens":16}'
  1. Observed, HTTP 200:
{"id":"chatcmpl-a1e54223-b13a-496e-9417-04b125d78fcb","created":1793247468,"model":"claude-haiku-5-5","object":"chat.completion","choices":[{"finish_reason":"stop","index":0,"message":{"content":"slp-qa-ok","role":"assistant","provider_specific_fields":{"citations":null,"thinking_blocks":null}}}],"usage":{"completion_tokens":10,"prompt_tokens":22,"total_tokens":32,"completion_tokens_details":{"reasoning_tokens":0,"text_tokens":10},"prompt_tokens_details":{"cached_tokens":0,"text_tokens":22,"cache_write_tokens":0,"cache_creation_tokens":0,"cache_creation_token_details":{"ephemeral_5m_input_tokens":0,"ephemeral_1h_input_tokens":0}},"cache_creation_input_tokens":0,"cache_read_input_tokens":0,"inference_geo":"global","speed":"standard","service_tier":"standard"}}

3. POST /user/update, bad budget_duration

  1. Run:
curl -sS -X POST "$PROXY/user/update" -H "Authorization: Bearer $LITELLM_MASTER_KEY" -H 'Content-Type: application/json' \
  -d '{"user_id":"u-qa-repro","budget_duration":"not-a-duration"}'
  1. Observed, HTTP 400:
{"error":{"message":"{'error': \"Invalid budget_duration 'not-a-duration'. Use a format like '1h', '24h', '7d', or '30d'.\"}","type":"auth_error","param":"None","code":"400"}}

4. POST /key/update, bad budget_duration

  1. Run:
KEY=$(curl -sS -X POST "$PROXY/key/generate" -H "Authorization: Bearer $LITELLM_MASTER_KEY" -H 'Content-Type: application/json' -d '{}' | jq -r .key)
  1. Run:
curl -sS -X POST "$PROXY/key/update" -H "Authorization: Bearer $LITELLM_MASTER_KEY" -H 'Content-Type: application/json' \
  -d "{\"key\":\"$KEY\",\"budget_duration\":\"not-a-duration\"}"
  1. Observed, HTTP 400:
{"error":{"message":"{'error': \"Invalid budget_duration 'not-a-duration'. Use a format like '1h', '24h', '7d', or '30d'.\"}","type":"auth_error","param":"None","code":"400"}}

5. POST /organization/member_add, missing org

  1. Run:
curl -sS -X POST "$PROXY/organization/member_add" -H "Authorization: Bearer $LITELLM_MASTER_KEY" -H 'Content-Type: application/json' \
  -d '{"organization_id":"no-such-org-qa","member":{"role":"internal_user","user_email":"qa@example.com"}}'
  1. Observed, HTTP 404:
{"error":{"message":"{'error': 'Organization not found for organization_id=no-such-org-qa'}","type":"auth_error","param":"None","code":"404"}}

6. POST /model/delete, missing id

  1. Run:
curl -sS -X POST "$PROXY/model/delete" -H "Authorization: Bearer $LITELLM_MASTER_KEY" -H 'Content-Type: application/json' -d '{"id":"no-such-model-qa"}'
  1. Observed, HTTP 400:
{"error":{"message":"{'error': 'Model with id=no-such-model-qa not found in db'}","type":"auth_error","param":"None","code":"400"}}

7. POST /model/update, missing id

  1. Run:
curl -sS -X POST "$PROXY/model/update" -H "Authorization: Bearer $LITELLM_MASTER_KEY" -H 'Content-Type: application/json' \
  -d '{"model_name":"qa-ghost","litellm_params":{"model":"anthropic/claude-haiku-5-5"},"model_info":{"id":"no-such-model-qa"}}'
  1. Observed, HTTP 400:
{"error":{"message":"Authentication Error, model not found","type":"auth_error","param":"None","code":"400"}}

8. POST /model/new, duplicate id

  1. Run:
curl -sS -X POST "$PROXY/model/new" -H "Authorization: Bearer $LITELLM_MASTER_KEY" -H 'Content-Type: application/json' \
  -d "{\"model_name\":\"qa-dup\",\"litellm_params\":{\"model\":\"anthropic/claude-haiku-5-5\"},\"model_info\":{\"id\":\"qa-fixed-id-$RUN\"}}"  # answers 200
  1. Run:
curl -sS -X POST "$PROXY/model/new" -H "Authorization: Bearer $LITELLM_MASTER_KEY" -H 'Content-Type: application/json' \
  -d "{\"model_name\":\"qa-dup\",\"litellm_params\":{\"model\":\"anthropic/claude-haiku-5-5\"},\"model_info\":{\"id\":\"qa-fixed-id-$RUN\"}}"
  1. Observed, HTTP 500:
{"error":{"message":"{'error': 'Failed to add model to db. Check your server logs for more details.'}","type":"auth_error","param":"None","code":"500"}}

9. GET /health/services, unknown service

  1. Run:
curl -sS "$PROXY/health/services?service=not-a-service" -H "Authorization: Bearer $LITELLM_MASTER_KEY"
  1. Observed, HTTP 400:
{"error":{"message":"{'error': \"Service must be in list. Service=not-a-service not in ['agentops', 'anthropic_cache_control_hook', 'argilla', 'arize', 'arize_phoenix', 'aws_sqs', 'azure_sentinel', 'azure_storage', 'bitbucket', 'braintrust', 'clickhouse', 'cloudzero', 'compression_interception', 'custom_callback_api', 'datadog', 'datadog_llm_observability', 'datadog_metrics', 'deepeval', 'dotprompt', 'dynamic_rate_limiter', 'dynamic_rate_limiter_v3', 'email', 'focus', 'galileo', 'gcs_bucket', 'gcs_pubsub', 'generic_api', 'gitlab', 'humanloop', 'lago', 'langfuse', 'langfuse_otel', 'langsmith', 'langtrace', 'levo', 'litellm_agent', 'literalai', 'logfire', 'mavvrik', 'mlflow', 'ms_teams', 'newrelic', 'openmeter', 'opik', 'otel', 'pagerduty', 'pointfive', 'posthog', 'prometheus', 'resend_email', 's3_v2', 'sendgrid_email', 'signoz', 'slack', 'slack_budget_alerts', 'smtp_email', 'sqs', 'ternary', 'vantage', 'vector_store_pre_call_hook', 'weave_otel', 'webhook', 'zerobus']\"}","type":"auth_error","param":"None","code":"400"}}

10. POST /queue/chat/completions, no priority

  1. Run:
curl -sS -X POST "$PROXY/queue/chat/completions" -H "Authorization: Bearer $LITELLM_MASTER_KEY" -H 'Content-Type: application/json' \
  -d '{"model":"claude-haiku-5-5","messages":[{"role":"user","content":"hi"}]}'
  1. Observed, HTTP 400:
{"error":{"message":"litellm.BadRequestError: priority is required to queue a request, send one or set router_settings.default_priority","type":"invalid_request_error","param":"priority","code":"400"}}

11. POST /queue/chat/completions, unknown model

  1. Run:
curl -sS -X POST "$PROXY/queue/chat/completions" -H "Authorization: Bearer $LITELLM_MASTER_KEY" -H 'Content-Type: application/json' \
  -d '{"model":"no-such-model-qa","messages":[{"role":"user","content":"hi"}],"priority":0}'
  1. Observed, HTTP 400:
{"error":{"message":"litellm.BadRequestError: You passed in model=no-such-model-qa. There are no healthy deployments for this model\n\nLiteLLM: model group 'no-such-model-qa' failed with the error above. No fallback was attempted.","type":"invalid_request_error","param":null,"code":"400"}}

12. POST /config/update, non-string callback

  1. Run:
curl -sS -X POST "$PROXY/config/update" -H "Authorization: Bearer $LITELLM_MASTER_KEY" -H 'Content-Type: application/json' \
  -d '{"litellm_settings":{"success_callback":[{"not":"a-string"}]}}'
  1. Observed, HTTP 400:
{"error":{"message":"Authentication Error, unhashable type: 'dict'","type":"auth_error","param":"None","code":"400"}}

13. GET /get/config/callbacks, scalar callback stored

  1. Run:
curl -sS -X POST "$PROXY/config/update" -H "Authorization: Bearer $LITELLM_MASTER_KEY" -H 'Content-Type: application/json' -d '{"litellm_settings":{"success_callback":5}}'  # answers 200
  1. Run:
curl -sS "$PROXY/get/config/callbacks" -H "Authorization: Bearer $LITELLM_MASTER_KEY"
  1. Observed, HTTP 200:
{"status":"success","callbacks":[],"alerts":[{"name":"email","variables":{"SMTP_HOST":null,"SMTP_PORT":"587","SMTP_TLS":"True","SMTP_USERNAME":null,"SMTP_PASSWORD":null,"SMTP_SENDER_EMAIL":null,"TEST_EMAIL_ADDRESS":null,"EMAIL_LOGO_URL":null,"EMAIL_SUPPORT_CONTACT":null}},{"name":"ms_teams","variables":{"MS_TEAMS_WEBHOOK_URL":null}}],"active_alerting_destinations":[],"router_settings":{"routing_strategy_args":{},"routing_strategy":"simple-shuffle","allowed_fails":3,"cooldown_time":5,"num_retries":2,"timeout":6000.0,"retry_after":0,"fallbacks":null,"context_window_fallbacks":null,"model_group_retry_policy":{},"retry_policy":null,"model_group_alias":{},"enable_weighted_failover":false,"enable_mid_stream_fallback_continuation":false,"enable_tag_filtering":false,"tag_routing_prefix":"","fallback_on_unsupported_params":true,"routing_groups":[]},"available_callbacks":{"langfuse":{"litellm_callback_name":"langfuse","litellm_callback_params":["LANGFUSE_PUBLIC_KEY","LANGFUSE_SECRET_KEY","LANGFUSE_HOST"],"ui_callback_name":"Langfuse"},"otel":{"litellm_callback_name":"otel","litellm_callback_params":["OTEL_EXPORTER","OTEL_EXPORTER_OTLP_PROTOCOL","OTEL_ENDPOINT","OTEL_TRACES_ENDPOINT","OTEL_HEADERS"],"ui_callback_name":"OpenTelemetry"},"s3":{"litellm_callback_name":"s3","litellm_callback_params":["AWS_ACCESS_KEY_ID","AWS_SECRET_ACCESS_KEY","AWS_REGION_NAME","S3_LOG_PROMPTS_ONLY","S3_PARTITION_GRANULARITY"],"ui_callback_name":"s3 Bucket (AWS)"},"azure_sentinel":{"litellm_callback_name":"azure_sentinel","litellm_callback_params":["AZURE_SENTINEL_DCR_IMMUTABLE_ID","AZURE_SENTINEL_ENDPOINT","AZURE_SENTINEL_TENANT_ID","AZURE_SENTINEL_CLIENT_ID","AZURE_SENTINEL_CLIENT_SECRET","AZURE_SENTINEL_STREAM_NAME"],"ui_callback_name":"Azure Sentinel"},"openmeter":{"litellm_callback_name":"openmeter","litellm_callback_params":["OPENMETER_API_ENDPOINT","OPENMETER_API_KEY"],"ui_callback_name":"OpenMeter"},"custom_callback_api":{"litellm_callback_name":"custom_callback_api","litellm_callback_params":["GENERIC_LOGGER_ENDPOINT","GENERIC_LOGGER_HEADERS"],"ui_callback_name":"Custom Callback API"},"generic_api":{"litellm_callback_name":"generic_api","litellm_callback_params":["GENERIC_LOGGER_ENDPOINT","GENERIC_LOGGER_HEADERS"],"ui_callback_name":"Custom Callback API"},"datadog":{"litellm_callback_name":"datadog","litellm_callback_params":["DD_API_KEY","DD_SITE"],"ui_callback_name":"Datadog"},"braintrust":{"litellm_callback_name":"braintrust","litellm_callback_params":["BRAINTRUST_API_KEY","BRAINTRUST_API_BASE"],"ui_callback_name":"Braintrust"},"langsmith":{"litellm_callback_name":"langsmith","litellm_callback_params":["LANGSMITH_API_KEY","LANGSMITH_PROJECT","LANGSMITH_DEFAULT_RUN_NAME"],"ui_callback_name":"Langsmith"},"lago":{"litellm_callback_name":"lago","litellm_callback_params":["LAGO_API_BASE","LAGO_API_KEY","LAGO_API_EVENT_CODE","LAGO_API_CHARGE_BY"],"ui_callback_name":"Lago Billing"},"traceloop":{"litellm_callback_name":"traceloop","litellm_callback_params":["TRACELOOP_API_KEY"],"ui_callback_name":"Traceloop"},"galileo":{"litellm_callback_name":"galileo","litellm_callback_params":["GALILEO_API_KEY","GALILEO_PROJECT_ID","GALILEO_LOG_STREAM_ID","GALILEO_BASE_URL","GALILEO_USERNAME","GALILEO_PASSWORD"],"ui_callback_name":"Galileo"},"newrelic":{"litellm_callback_name":"newrelic","litellm_callback_params":["NEW_RELIC_AI_MONITORING_RECORD_CONTENT_ENABLED"],"ui_callback_name":"New Relic"},"pointfive":{"litellm_callback_name":"pointfive","litellm_callback_params":["POINTFIVE_API_KEY","POINTFIVE_API_URL"],"ui_callback_name":"PointFive"},"signoz":{"litellm_callback_name":"signoz","litellm_callback_params":["SIGNOZ_INGESTION_ENDPOINT","SIGNOZ_INGESTION_KEY"],"ui_callback_name":"SigNoz"},"zerobus":{"litellm_callback_name":"zerobus","litellm_callback_params":["ZEROBUS_WORKSPACE_URL","ZEROBUS_SERVER_ENDPOINT","ZEROBUS_CLIENT_ID","ZEROBUS_CLIENT_SECRET","ZEROBUS_TABLE_NAME"],"ui_callback_name":"Databricks Zerobus"}}}

14. GET /key/list, bad status

  1. Run:
curl -sS "$PROXY/key/list?status=bogus" -H "Authorization: Bearer $LITELLM_MASTER_KEY"
  1. Observed, HTTP 400:
{"error":{"message":"{'error': \"Invalid status value. Supported: 'active', 'expired', 'revoked', 'deleted'.\"}","type":"internal_server_error","param":"None","code":"400"}}

15. GET /team/info, caller outside team

  1. Run:
curl -sS -o /dev/null -X POST "$PROXY/team/new" -H "Authorization: Bearer $LITELLM_MASTER_KEY" -H 'Content-Type: application/json' -d "{\"team_id\":\"qa-team-private-$RUN\"}"
UKEY=$(curl -sS -X POST "$PROXY/user/new" -H "Authorization: Bearer $LITELLM_MASTER_KEY" -H 'Content-Type: application/json' \
  -d "{\"user_id\":\"qa-outsider-$RUN\",\"user_role\":\"internal_user\"}" | jq -r .key)
  1. Run:
curl -sS "$PROXY/team/info?team_id=qa-team-private-$RUN" -H "Authorization: Bearer $UKEY"
  1. Observed, HTTP 403:
{"error":{"message":"{'error': 'User=qa-outsider-1793247467 not authorized to access this team=qa-team-private-1793247467'}","type":"auth_error","param":"None","code":"403"}}

16. Control, unknown key

  1. Run:
curl -sS "$PROXY/team/info?team_id=whatever" -H "Authorization: Bearer sk-not-a-real-key-qa"
  1. Observed, HTTP 401:
{"error":{"message":"Authentication Error, Invalid API key provided.","type":"token_not_found_in_db","param":"key","code":"401"}}

17. Control, wrong UI password

  1. Run:
curl -sS -X POST "$PROXY/login" -d 'username=admin&password=definitely-wrong-qa'
  1. Observed, HTTP 401:
{"error":{"message":"Invalid credentials used to access UI. Check 'UI_USERNAME' and 'UI_PASSWORD', or the password set for your user","type":"auth_error","param":"invalid_credentials","code":"401"}}

18. GET /key/list, database offline

  1. Take the proxy's database offline as in the shared setup, with ALLOW_CONNECTIONS false and its open sessions ended

  2. Run:

curl -sS "$PROXY/key/list" -H "Authorization: Bearer $LITELLM_MASTER_KEY"
  1. Observed, HTTP 500:
{"error":{"message":"Authentication Error, 'NoneType' object has no attribute 'get'","type":"internal_server_error","param":"None","code":"500"}}

19. GET /key/aliases, database offline

  1. Keep the database offline from case 18

  2. Run:

curl -sS "$PROXY/key/aliases" -H "Authorization: Bearer $LITELLM_MASTER_KEY"
  1. Observed, HTTP 500:
{"error":{"message":"Authentication Error, 'NoneType' object has no attribute 'get'","type":"internal_server_error","param":"None","code":"500"}}

20. POST /key/update, database offline

  1. Keep the database offline from case 18

  2. Run:

curl -sS -X POST "$PROXY/key/update" -H "Authorization: Bearer $LITELLM_MASTER_KEY" -H 'Content-Type: application/json' \
  -d "{\"key\":\"$KEY\",\"max_budget\":5}"
  1. Observed, HTTP 400:
{"error":{"message":"Authentication Error, 'NoneType' object has no attribute 'get'","type":"auth_error","param":"None","code":"400"}}

21. GET /key/list, database host unreachable

  1. On the hop proxy from the shared setup, stop the TCP forwarder so the database host refuses connections

  2. Run:

curl -sS "$PROXY/key/list" -H "Authorization: Bearer $LITELLM_MASTER_KEY"
  1. Observed, HTTP 500:
{"error":{"message":"Authentication Error, 'NoneType' object has no attribute 'get'","type":"internal_server_error","param":"None","code":"500"}}

22. GET /key/aliases, database host unreachable

  1. Keep the forwarder stopped from case 21

  2. Run:

curl -sS "$PROXY/key/aliases" -H "Authorization: Bearer $LITELLM_MASTER_KEY"
  1. Observed, HTTP 500:
{"error":{"message":"Authentication Error, 'NoneType' object has no attribute 'get'","type":"internal_server_error","param":"None","code":"500"}}

23. POST /key/update, database host unreachable

  1. Keep the forwarder stopped from case 21

  2. Run:

curl -sS -X POST "$PROXY/key/update" -H "Authorization: Bearer $LITELLM_MASTER_KEY" -H 'Content-Type: application/json' \
  -d "{\"key\":\"$KEY\",\"max_budget\":5}"
  1. Observed, HTTP 400:
{"error":{"message":"Authentication Error, 'NoneType' object has no attribute 'get'","type":"auth_error","param":"None","code":"400"}}

24. POST /queue/chat/completions, upstream answers 503

  1. Start a local HTTP server on a free port, $UPSTREAM_PORT, that answers every POST with 503 and {"error":{"message":"upstream overloaded"}}

  2. Run:

curl -sS -o /dev/null -X POST "$PROXY/model/new" -H "Authorization: Bearer $LITELLM_MASTER_KEY" -H 'Content-Type: application/json' \
  -d "{\"model_name\":\"qa-overloaded-$RUN\",\"litellm_params\":{\"model\":\"openai/qa-overloaded\",\"api_base\":\"http://127.0.0.1:$UPSTREAM_PORT/v1\",\"api_key\":\"sk-qa-placeholder\"}}"
  1. Wait until six GET /v1/models calls in a row list qa-overloaded-$RUN, so both workers have it

  2. Run:

curl -sS -X POST "$PROXY/queue/chat/completions" -H "Authorization: Bearer $LITELLM_MASTER_KEY" -H 'Content-Type: application/json' \
  -d "{\"model\":\"qa-overloaded-$RUN\",\"messages\":[{\"role\":\"user\",\"content\":\"hi\"}],\"priority\":0}"
  1. Observed, HTTP 400:
{"error":{"message":"Authentication Error, litellm.ServiceUnavailableError: ServiceUnavailableError: OpenAIException - upstream overloaded\n\nLiteLLM: model group 'qa-overloaded-1793247570' failed with the error above. No fallback was attempted. LiteLLM Retried: 2 times, LiteLLM Max Retries: 2","type":"auth_error","param":null,"code":"400"}}

25. GET /get/config/callbacks, config file emptied

  1. Empty the proxy's config file in place, then restore it right after the call

  2. Run:

curl -sS "$PROXY/get/config/callbacks" -H "Authorization: Bearer $LITELLM_MASTER_KEY"
  1. Observed, HTTP 400:
{"error":{"message":"Authentication Error, Config cannot be None or Empty.","type":"auth_error","param":"None","code":"400"}}

26. POST /key/update, team table locked

  1. Run:
curl -sS -o /dev/null -X POST "$PROXY/team/new" -H "Authorization: Bearer $LITELLM_MASTER_KEY" -H 'Content-Type: application/json' -d "{\"team_id\":\"qa-team-stall-$RUN\"}"
KEY=$(curl -sS -X POST "$PROXY/key/generate" -H "Authorization: Bearer $LITELLM_MASTER_KEY" -H 'Content-Type: application/json' -d "{\"team_id\":\"qa-team-stall-$RUN\"}" | jq -r .key)
  1. From another session, hold the team table locked for 25 seconds:
psql "$DATABASE_URL" -c 'BEGIN; LOCK TABLE "LiteLLM_TeamTable" IN ACCESS EXCLUSIVE MODE; SELECT pg_sleep(25); COMMIT;' &
  1. Run:
curl -sS -X POST "$PROXY/key/update" -H "Authorization: Bearer $LITELLM_MASTER_KEY" -H 'Content-Type: application/json' \
  -d "{\"key\":\"$KEY\",\"max_budget\":5}"
  1. Observed, HTTP 404:
{"error":{"message":"{'error': \"Team doesn't exist in db. Team=qa-team-stall-1793247570. Create team via `/team/new` call.\"}","type":"auth_error","param":"None","code":"404"}}

27. POST /queue/chat/completions, Anthropic answers 404

  1. Run:
curl -sS -o /dev/null -X POST "$PROXY/model/new" -H "Authorization: Bearer $LITELLM_MASTER_KEY" -H 'Content-Type: application/json' \
  -d "{\"model_name\":\"qa-retired-$RUN\",\"litellm_params\":{\"model\":\"anthropic/claude-retired-qa-$RUN\",\"api_key\":\"os.environ/ANTHROPIC_API_KEY\"}}"
  1. Wait until six GET /v1/models calls in a row list qa-retired-$RUN, a model name Anthropic does not serve, so both workers have it

  2. Run:

curl -sS -X POST "$PROXY/queue/chat/completions" -H "Authorization: Bearer $LITELLM_MASTER_KEY" -H 'Content-Type: application/json' \
  -d "{\"model\":\"qa-retired-$RUN\",\"messages\":[{\"role\":\"user\",\"content\":\"hi\"}],\"priority\":0}"
  1. Observed, HTTP 400:
{"error":{"message":"Authentication Error, litellm.NotFoundError: AnthropicException - {\"type\":\"error\",\"error\":{\"type\":\"not_found_error\",\"message\":\"model: claude-retired-qa-1793247826\"},\"request_id\":\"req_011CgVtgDpAH7JmeDi34RpEG\"}\n\nLiteLLM: model group 'qa-retired-1793247826' failed with the error above. No fallback was attempted.","type":"auth_error","param":null,"code":"400"}}

28. POST /queue/chat/completions, Anthropic answers

  1. Run:
curl -sS -X POST "$PROXY/queue/chat/completions" -H "Authorization: Bearer $LITELLM_MASTER_KEY" -H 'Content-Type: application/json' \
  -d '{"model":"claude-haiku-5-5","messages":[{"role":"user","content":"Reply with the single word pong"}],"priority":0,"max_tokens":10}'
  1. Observed, HTTP 200:
{"id":"chatcmpl-be86b328-4bf2-423a-989c-637218366355","created":1793247852,"model":"claude-haiku-5-5","object":"chat.completion","system_fingerprint":null,"choices":[{"finish_reason":"stop","index":0,"message":{"content":"Pong","role":"assistant","tool_calls":null,"function_call":null,"provider_specific_fields":{"citations":null,"thinking_blocks":null}}}],"usage":{"completion_tokens":5,"prompt_tokens":17,"total_tokens":22,"completion_tokens_details":{"accepted_prediction_tokens":null,"audio_tokens":null,"reasoning_tokens":0,"rejected_prediction_tokens":null,"text_tokens":5,"image_tokens":null,"video_tokens":null},"prompt_tokens_details":{"audio_tokens":null,"cached_tokens":0,"text_tokens":17,"image_tokens":null,"video_tokens":null,"initial_prompt_tokens":null,"cache_write_tokens":0,"cache_creation_tokens":0,"cache_creation_token_details":{"ephemeral_5m_input_tokens":0,"ephemeral_30m_input_tokens":null,"ephemeral_1h_input_tokens":0,"ephemeral_12h_input_tokens":null}},"cache_creation_input_tokens":0,"cache_read_input_tokens":0,"iterations":null,"inference_geo":"global","speed":"standard","service_tier":"standard"}}

29. POST /model/new, database host unreachable

  1. Keep the forwarder stopped from case 21

  2. Run:

curl -sS -X POST "$PROXY/model/new" -H "Authorization: Bearer $LITELLM_MASTER_KEY" -H 'Content-Type: application/json' \
  -d '{"model_name":"qa-outage-model","litellm_params":{"model":"anthropic/claude-haiku-5-5","api_key":"os.environ/ANTHROPIC_API_KEY"}}'
  1. Observed, HTTP 500:
{"error":{"message":"{'error': 'Failed to add model to db. Check your server logs for more details.'}","type":"auth_error","param":"None","code":"500"}}

30. POST /queue/chat/completions, Anthropic rejects the key

  1. Run:
curl -sS -o /dev/null -X POST "$PROXY/model/new" -H "Authorization: Bearer $LITELLM_MASTER_KEY" -H 'Content-Type: application/json' \
  -d "{\"model_name\":\"qa-badkey-$RUN\",\"litellm_params\":{\"model\":\"anthropic/claude-haiku-5-5\",\"api_key\":\"sk-ant-api03-revoked-qa-$RUN\"}}"
  1. Wait until six GET /v1/models calls in a row list qa-badkey-$RUN, a claude-haiku-5-5 deployment with an Anthropic key Anthropic rejects, so both workers have it

  2. Run:

curl -sS -X POST "$PROXY/queue/chat/completions" -H "Authorization: Bearer $LITELLM_MASTER_KEY" -H 'Content-Type: application/json' \
  -d "{\"model\":\"qa-badkey-$RUN\",\"messages\":[{\"role\":\"user\",\"content\":\"hi\"}],\"priority\":0,\"max_tokens\":10}"
  1. Observed, HTTP 400:
{"error":{"message":"Authentication Error, litellm.AuthenticationError: AnthropicException - {\"type\":\"error\",\"error\":{\"type\":\"authentication_error\",\"message\":\"invalid x-api-key\"},\"request_id\":\"req_011CgVti5jnz7hPUNsti8Ciw\"}\n\nLiteLLM: model group 'qa-badkey-1793247854' failed with the error above. No fallback was attempted.","type":"auth_error","param":null,"code":"400"}}

31. POST /key/update, database failed over to read-only

  1. Run:
KEY=$(curl -sS -X POST "$PROXY/key/generate" -H "Authorization: Bearer $LITELLM_MASTER_KEY" -H 'Content-Type: application/json' -d '{}' | jq -r .key)
  1. Switch the proxy's database to read-only and end its open sessions, the way a primary demoted during a failover behaves:
psql "$ADMIN_URL" -c "ALTER DATABASE \"$DB\" SET default_transaction_read_only = on"
psql "$ADMIN_URL" -c "SELECT pg_terminate_backend(pid) FROM pg_stat_activity WHERE datname='$DB'"
  1. Run:
curl -sS -X POST "$PROXY/key/update" -H "Authorization: Bearer $LITELLM_MASTER_KEY" -H 'Content-Type: application/json' \
  -d "{\"key\":\"$KEY\",\"max_budget\":5}"
  1. Observed, HTTP 400:
{"error":{"message":"Authentication Error, 'NoneType' object has no attribute 'get'","type":"auth_error","param":"None","code":"400"}}

32. POST /key/update, reconnected read-only session

  1. Keep the database read-only from case 31, so the next call runs on a reconnected session that rejects writes

  2. Run:

curl -sS -X POST "$PROXY/key/update" -H "Authorization: Bearer $LITELLM_MASTER_KEY" -H 'Content-Type: application/json' \
  -d "{\"key\":\"$KEY\",\"max_budget\":5}"
  1. Observed, HTTP 400:
{"error":{"message":"Authentication Error, 'NoneType' object has no attribute 'get'","type":"auth_error","param":"None","code":"400"}}

After (9f25ff8)

2. GET /team/info, missing team

  1. Run:
curl -sS "$PROXY/team/info?team_id=no-such-team-qa" -H "Authorization: Bearer $LITELLM_MASTER_KEY"
  1. Observed, HTTP 404:
{"error":{"message":"{'message': 'Team not found, passed team id: no-such-team-qa.'}","type":"invalid_request_error","param":null,"code":"404"}}
The other 31 cases

1. Sanity, real Anthropic call

  1. Run:
curl -sS -X POST "$PROXY/v1/chat/completions" -H "Authorization: Bearer $LITELLM_MASTER_KEY" -H 'Content-Type: application/json' \
  -d '{"model":"claude-haiku-5-5","messages":[{"role":"user","content":"say slp-qa-ok and nothing else"}],"max_tokens":16}'
  1. Observed, HTTP 200:
{"id":"chatcmpl-1e313416-7cf9-4e6e-96d0-b054f3d1e0c0","created":1793247469,"model":"claude-haiku-5-5","object":"chat.completion","choices":[{"finish_reason":"stop","index":0,"message":{"content":"slp-qa-ok","role":"assistant","provider_specific_fields":{"citations":null,"thinking_blocks":null}}}],"usage":{"completion_tokens":10,"prompt_tokens":22,"total_tokens":32,"completion_tokens_details":{"reasoning_tokens":0,"text_tokens":10},"prompt_tokens_details":{"cached_tokens":0,"text_tokens":22,"cache_write_tokens":0,"cache_creation_tokens":0,"cache_creation_token_details":{"ephemeral_5m_input_tokens":0,"ephemeral_1h_input_tokens":0}},"cache_creation_input_tokens":0,"cache_read_input_tokens":0,"inference_geo":"global","speed":"standard","service_tier":"standard"}}

3. POST /user/update, bad budget_duration

  1. Run:
curl -sS -X POST "$PROXY/user/update" -H "Authorization: Bearer $LITELLM_MASTER_KEY" -H 'Content-Type: application/json' \
  -d '{"user_id":"u-qa-repro","budget_duration":"not-a-duration"}'
  1. Observed, HTTP 400:
{"error":{"message":"{'error': \"Invalid budget_duration 'not-a-duration'. Use a format like '1h', '24h', '7d', or '30d'.\"}","type":"invalid_request_error","param":null,"code":"400"}}

4. POST /key/update, bad budget_duration

  1. Run:
KEY=$(curl -sS -X POST "$PROXY/key/generate" -H "Authorization: Bearer $LITELLM_MASTER_KEY" -H 'Content-Type: application/json' -d '{}' | jq -r .key)
  1. Run:
curl -sS -X POST "$PROXY/key/update" -H "Authorization: Bearer $LITELLM_MASTER_KEY" -H 'Content-Type: application/json' \
  -d "{\"key\":\"$KEY\",\"budget_duration\":\"not-a-duration\"}"
  1. Observed, HTTP 400:
{"error":{"message":"{'error': \"Invalid budget_duration 'not-a-duration'. Use a format like '1h', '24h', '7d', or '30d'.\"}","type":"invalid_request_error","param":null,"code":"400"}}

5. POST /organization/member_add, missing org

  1. Run:
curl -sS -X POST "$PROXY/organization/member_add" -H "Authorization: Bearer $LITELLM_MASTER_KEY" -H 'Content-Type: application/json' \
  -d '{"organization_id":"no-such-org-qa","member":{"role":"internal_user","user_email":"qa@example.com"}}'
  1. Observed, HTTP 404:
{"error":{"message":"{'error': 'Organization not found for organization_id=no-such-org-qa'}","type":"invalid_request_error","param":null,"code":"404"}}

6. POST /model/delete, missing id

  1. Run:
curl -sS -X POST "$PROXY/model/delete" -H "Authorization: Bearer $LITELLM_MASTER_KEY" -H 'Content-Type: application/json' -d '{"id":"no-such-model-qa"}'
  1. Observed, HTTP 400:
{"error":{"message":"{'error': 'Model with id=no-such-model-qa not found in db'}","type":"invalid_request_error","param":null,"code":"400"}}

7. POST /model/update, missing id

  1. Run:
curl -sS -X POST "$PROXY/model/update" -H "Authorization: Bearer $LITELLM_MASTER_KEY" -H 'Content-Type: application/json' \
  -d '{"model_name":"qa-ghost","litellm_params":{"model":"anthropic/claude-haiku-5-5"},"model_info":{"id":"no-such-model-qa"}}'
  1. Observed, HTTP 400:
{"error":{"message":"model not found","type":"invalid_request_error","param":null,"code":"400"}}

8. POST /model/new, duplicate id

  1. Run:
curl -sS -X POST "$PROXY/model/new" -H "Authorization: Bearer $LITELLM_MASTER_KEY" -H 'Content-Type: application/json' \
  -d "{\"model_name\":\"qa-dup\",\"litellm_params\":{\"model\":\"anthropic/claude-haiku-5-5\"},\"model_info\":{\"id\":\"qa-fixed-id-$RUN\"}}"  # answers 200
  1. Run:
curl -sS -X POST "$PROXY/model/new" -H "Authorization: Bearer $LITELLM_MASTER_KEY" -H 'Content-Type: application/json' \
  -d "{\"model_name\":\"qa-dup\",\"litellm_params\":{\"model\":\"anthropic/claude-haiku-5-5\"},\"model_info\":{\"id\":\"qa-fixed-id-$RUN\"}}"
  1. Observed, HTTP 500:
{"error":{"message":"{'error': 'Failed to add model to db. Check your server logs for more details.'}","type":"internal_server_error","param":null,"code":"500"}}

9. GET /health/services, unknown service

  1. Run:
curl -sS "$PROXY/health/services?service=not-a-service" -H "Authorization: Bearer $LITELLM_MASTER_KEY"
  1. Observed, HTTP 400:
{"error":{"message":"{'error': \"Service must be in list. Service=not-a-service not in ['agentops', 'anthropic_cache_control_hook', 'argilla', 'arize', 'arize_phoenix', 'aws_sqs', 'azure_sentinel', 'azure_storage', 'bitbucket', 'braintrust', 'clickhouse', 'cloudzero', 'compression_interception', 'custom_callback_api', 'datadog', 'datadog_llm_observability', 'datadog_metrics', 'deepeval', 'dotprompt', 'dynamic_rate_limiter', 'dynamic_rate_limiter_v3', 'email', 'focus', 'galileo', 'gcs_bucket', 'gcs_pubsub', 'generic_api', 'gitlab', 'humanloop', 'lago', 'langfuse', 'langfuse_otel', 'langsmith', 'langtrace', 'levo', 'litellm_agent', 'literalai', 'logfire', 'mavvrik', 'mlflow', 'ms_teams', 'newrelic', 'openmeter', 'opik', 'otel', 'pagerduty', 'pointfive', 'posthog', 'prometheus', 'resend_email', 's3_v2', 'sendgrid_email', 'signoz', 'slack', 'slack_budget_alerts', 'smtp_email', 'sqs', 'ternary', 'vantage', 'vector_store_pre_call_hook', 'weave_otel', 'webhook', 'zerobus']\"}","type":"invalid_request_error","param":null,"code":"400"}}

10. POST /queue/chat/completions, no priority

  1. Run:
curl -sS -X POST "$PROXY/queue/chat/completions" -H "Authorization: Bearer $LITELLM_MASTER_KEY" -H 'Content-Type: application/json' \
  -d '{"model":"claude-haiku-5-5","messages":[{"role":"user","content":"hi"}]}'
  1. Observed, HTTP 400:
{"error":{"message":"litellm.BadRequestError: priority is required to queue a request, send one or set router_settings.default_priority","type":"invalid_request_error","param":"priority","code":"400"}}

11. POST /queue/chat/completions, unknown model

  1. Run:
curl -sS -X POST "$PROXY/queue/chat/completions" -H "Authorization: Bearer $LITELLM_MASTER_KEY" -H 'Content-Type: application/json' \
  -d '{"model":"no-such-model-qa","messages":[{"role":"user","content":"hi"}],"priority":0}'
  1. Observed, HTTP 400:
{"error":{"message":"litellm.BadRequestError: You passed in model=no-such-model-qa. There are no healthy deployments for this model\n\nLiteLLM: model group 'no-such-model-qa' failed with the error above. No fallback was attempted.","type":"invalid_request_error","param":null,"code":"400"}}

12. POST /config/update, non-string callback

  1. Run:
curl -sS -X POST "$PROXY/config/update" -H "Authorization: Bearer $LITELLM_MASTER_KEY" -H 'Content-Type: application/json' \
  -d '{"litellm_settings":{"success_callback":[{"not":"a-string"}]}}'
  1. Observed, HTTP 400:
{"error":{"message":"unhashable type: 'dict'","type":"invalid_request_error","param":null,"code":"400"}}

13. GET /get/config/callbacks, scalar callback stored

  1. Run:
curl -sS -X POST "$PROXY/config/update" -H "Authorization: Bearer $LITELLM_MASTER_KEY" -H 'Content-Type: application/json' -d '{"litellm_settings":{"success_callback":5}}'  # answers 200
  1. Run:
curl -sS "$PROXY/get/config/callbacks" -H "Authorization: Bearer $LITELLM_MASTER_KEY"
  1. Observed, HTTP 200:
{"status":"success","callbacks":[],"alerts":[{"name":"email","variables":{"SMTP_HOST":null,"SMTP_PORT":"587","SMTP_TLS":"True","SMTP_USERNAME":null,"SMTP_PASSWORD":null,"SMTP_SENDER_EMAIL":null,"TEST_EMAIL_ADDRESS":null,"EMAIL_LOGO_URL":null,"EMAIL_SUPPORT_CONTACT":null}},{"name":"ms_teams","variables":{"MS_TEAMS_WEBHOOK_URL":null}}],"active_alerting_destinations":[],"router_settings":{"routing_strategy_args":{},"routing_strategy":"simple-shuffle","allowed_fails":3,"cooldown_time":5,"num_retries":2,"timeout":6000.0,"retry_after":0,"fallbacks":null,"context_window_fallbacks":null,"model_group_retry_policy":{},"retry_policy":null,"model_group_alias":{},"enable_weighted_failover":false,"enable_mid_stream_fallback_continuation":false,"enable_tag_filtering":false,"tag_routing_prefix":"","fallback_on_unsupported_params":true,"routing_groups":[]},"available_callbacks":{"langfuse":{"litellm_callback_name":"langfuse","litellm_callback_params":["LANGFUSE_PUBLIC_KEY","LANGFUSE_SECRET_KEY","LANGFUSE_HOST"],"ui_callback_name":"Langfuse"},"otel":{"litellm_callback_name":"otel","litellm_callback_params":["OTEL_EXPORTER","OTEL_EXPORTER_OTLP_PROTOCOL","OTEL_ENDPOINT","OTEL_TRACES_ENDPOINT","OTEL_HEADERS"],"ui_callback_name":"OpenTelemetry"},"s3":{"litellm_callback_name":"s3","litellm_callback_params":["AWS_ACCESS_KEY_ID","AWS_SECRET_ACCESS_KEY","AWS_REGION_NAME","S3_LOG_PROMPTS_ONLY","S3_PARTITION_GRANULARITY"],"ui_callback_name":"s3 Bucket (AWS)"},"azure_sentinel":{"litellm_callback_name":"azure_sentinel","litellm_callback_params":["AZURE_SENTINEL_DCR_IMMUTABLE_ID","AZURE_SENTINEL_ENDPOINT","AZURE_SENTINEL_TENANT_ID","AZURE_SENTINEL_CLIENT_ID","AZURE_SENTINEL_CLIENT_SECRET","AZURE_SENTINEL_STREAM_NAME"],"ui_callback_name":"Azure Sentinel"},"openmeter":{"litellm_callback_name":"openmeter","litellm_callback_params":["OPENMETER_API_ENDPOINT","OPENMETER_API_KEY"],"ui_callback_name":"OpenMeter"},"custom_callback_api":{"litellm_callback_name":"custom_callback_api","litellm_callback_params":["GENERIC_LOGGER_ENDPOINT","GENERIC_LOGGER_HEADERS"],"ui_callback_name":"Custom Callback API"},"generic_api":{"litellm_callback_name":"generic_api","litellm_callback_params":["GENERIC_LOGGER_ENDPOINT","GENERIC_LOGGER_HEADERS"],"ui_callback_name":"Custom Callback API"},"datadog":{"litellm_callback_name":"datadog","litellm_callback_params":["DD_API_KEY","DD_SITE"],"ui_callback_name":"Datadog"},"braintrust":{"litellm_callback_name":"braintrust","litellm_callback_params":["BRAINTRUST_API_KEY","BRAINTRUST_API_BASE"],"ui_callback_name":"Braintrust"},"langsmith":{"litellm_callback_name":"langsmith","litellm_callback_params":["LANGSMITH_API_KEY","LANGSMITH_PROJECT","LANGSMITH_DEFAULT_RUN_NAME"],"ui_callback_name":"Langsmith"},"lago":{"litellm_callback_name":"lago","litellm_callback_params":["LAGO_API_BASE","LAGO_API_KEY","LAGO_API_EVENT_CODE","LAGO_API_CHARGE_BY"],"ui_callback_name":"Lago Billing"},"traceloop":{"litellm_callback_name":"traceloop","litellm_callback_params":["TRACELOOP_API_KEY"],"ui_callback_name":"Traceloop"},"galileo":{"litellm_callback_name":"galileo","litellm_callback_params":["GALILEO_API_KEY","GALILEO_PROJECT_ID","GALILEO_LOG_STREAM_ID","GALILEO_BASE_URL","GALILEO_USERNAME","GALILEO_PASSWORD"],"ui_callback_name":"Galileo"},"newrelic":{"litellm_callback_name":"newrelic","litellm_callback_params":["NEW_RELIC_AI_MONITORING_RECORD_CONTENT_ENABLED"],"ui_callback_name":"New Relic"},"pointfive":{"litellm_callback_name":"pointfive","litellm_callback_params":["POINTFIVE_API_KEY","POINTFIVE_API_URL"],"ui_callback_name":"PointFive"},"signoz":{"litellm_callback_name":"signoz","litellm_callback_params":["SIGNOZ_INGESTION_ENDPOINT","SIGNOZ_INGESTION_KEY"],"ui_callback_name":"SigNoz"},"zerobus":{"litellm_callback_name":"zerobus","litellm_callback_params":["ZEROBUS_WORKSPACE_URL","ZEROBUS_SERVER_ENDPOINT","ZEROBUS_CLIENT_ID","ZEROBUS_CLIENT_SECRET","ZEROBUS_TABLE_NAME"],"ui_callback_name":"Databricks Zerobus"}}}

14. GET /key/list, bad status

  1. Run:
curl -sS "$PROXY/key/list?status=bogus" -H "Authorization: Bearer $LITELLM_MASTER_KEY"
  1. Observed, HTTP 400:
{"error":{"message":"{'error': \"Invalid status value. Supported: 'active', 'expired', 'revoked', 'deleted'.\"}","type":"invalid_request_error","param":null,"code":"400"}}

15. GET /team/info, caller outside team

  1. Run:
curl -sS -o /dev/null -X POST "$PROXY/team/new" -H "Authorization: Bearer $LITELLM_MASTER_KEY" -H 'Content-Type: application/json' -d "{\"team_id\":\"qa-team-private-$RUN\"}"
UKEY=$(curl -sS -X POST "$PROXY/user/new" -H "Authorization: Bearer $LITELLM_MASTER_KEY" -H 'Content-Type: application/json' \
  -d "{\"user_id\":\"qa-outsider-$RUN\",\"user_role\":\"internal_user\"}" | jq -r .key)
  1. Run:
curl -sS "$PROXY/team/info?team_id=qa-team-private-$RUN" -H "Authorization: Bearer $UKEY"
  1. Observed, HTTP 403:
{"error":{"message":"{'error': 'User=qa-outsider-1793247467 not authorized to access this team=qa-team-private-1793247467'}","type":"auth_error","param":null,"code":"403"}}

16. Control, unknown key

  1. Run:
curl -sS "$PROXY/team/info?team_id=whatever" -H "Authorization: Bearer sk-not-a-real-key-qa"
  1. Observed, HTTP 401:
{"error":{"message":"Authentication Error, Invalid API key provided.","type":"token_not_found_in_db","param":"key","code":"401"}}

17. Control, wrong UI password

  1. Run:
curl -sS -X POST "$PROXY/login" -d 'username=admin&password=definitely-wrong-qa'
  1. Observed, HTTP 401:
{"error":{"message":"Invalid credentials used to access UI. Check 'UI_USERNAME' and 'UI_PASSWORD', or the password set for your user","type":"auth_error","param":"invalid_credentials","code":"401"}}

18. GET /key/list, database offline

  1. Take the proxy's database offline as in the shared setup, with ALLOW_CONNECTIONS false and its open sessions ended

  2. Run:

curl -sS "$PROXY/key/list" -H "Authorization: Bearer $LITELLM_MASTER_KEY"
  1. Observed, HTTP 503:
{"error":{"message":"Service Unavailable, the authentication database is temporarily unreachable. Please retry shortly.","type":"no_db_connection","param":null,"code":"503"}}

19. GET /key/aliases, database offline

  1. Keep the database offline from case 18

  2. Run:

curl -sS "$PROXY/key/aliases" -H "Authorization: Bearer $LITELLM_MASTER_KEY"
  1. Observed, HTTP 503:
{"error":{"message":"Service Unavailable, the authentication database is temporarily unreachable. Please retry shortly.","type":"no_db_connection","param":null,"code":"503"}}

20. POST /key/update, database offline

  1. Keep the database offline from case 18

  2. Run:

curl -sS -X POST "$PROXY/key/update" -H "Authorization: Bearer $LITELLM_MASTER_KEY" -H 'Content-Type: application/json' \
  -d "{\"key\":\"$KEY\",\"max_budget\":5}"
  1. Observed, HTTP 503:
{"error":{"message":"Service Unavailable, the authentication database is temporarily unreachable. Please retry shortly.","type":"no_db_connection","param":null,"code":"503"}}

21. GET /key/list, database host unreachable

  1. On the hop proxy from the shared setup, stop the TCP forwarder so the database host refuses connections

  2. Run:

curl -sS "$PROXY/key/list" -H "Authorization: Bearer $LITELLM_MASTER_KEY"
  1. Observed, HTTP 503:
{"error":{"message":"Service Unavailable, the authentication database is temporarily unreachable. Please retry shortly.","type":"no_db_connection","param":null,"code":"503"}}

22. GET /key/aliases, database host unreachable

  1. Keep the forwarder stopped from case 21

  2. Run:

curl -sS "$PROXY/key/aliases" -H "Authorization: Bearer $LITELLM_MASTER_KEY"
  1. Observed, HTTP 503:
{"error":{"message":"Service Unavailable, the authentication database is temporarily unreachable. Please retry shortly.","type":"no_db_connection","param":null,"code":"503"}}

23. POST /key/update, database host unreachable

  1. Keep the forwarder stopped from case 21

  2. Run:

curl -sS -X POST "$PROXY/key/update" -H "Authorization: Bearer $LITELLM_MASTER_KEY" -H 'Content-Type: application/json' \
  -d "{\"key\":\"$KEY\",\"max_budget\":5}"
  1. Observed, HTTP 503:
{"error":{"message":"Service Unavailable, the authentication database is temporarily unreachable. Please retry shortly.","type":"no_db_connection","param":null,"code":"503"}}

24. POST /queue/chat/completions, upstream answers 503

  1. Start a local HTTP server on a free port, $UPSTREAM_PORT, that answers every POST with 503 and {"error":{"message":"upstream overloaded"}}

  2. Run:

curl -sS -o /dev/null -X POST "$PROXY/model/new" -H "Authorization: Bearer $LITELLM_MASTER_KEY" -H 'Content-Type: application/json' \
  -d "{\"model_name\":\"qa-overloaded-$RUN\",\"litellm_params\":{\"model\":\"openai/qa-overloaded\",\"api_base\":\"http://127.0.0.1:$UPSTREAM_PORT/v1\",\"api_key\":\"sk-qa-placeholder\"}}"
  1. Wait until six GET /v1/models calls in a row list qa-overloaded-$RUN, so both workers have it

  2. Run:

curl -sS -X POST "$PROXY/queue/chat/completions" -H "Authorization: Bearer $LITELLM_MASTER_KEY" -H 'Content-Type: application/json' \
  -d "{\"model\":\"qa-overloaded-$RUN\",\"messages\":[{\"role\":\"user\",\"content\":\"hi\"}],\"priority\":0}"
  1. Observed, HTTP 503:
{"error":{"message":"litellm.ServiceUnavailableError: ServiceUnavailableError: OpenAIException - upstream overloaded\n\nLiteLLM: model group 'qa-overloaded-1793247552' failed with the error above. No fallback was attempted. LiteLLM Retried: 2 times, LiteLLM Max Retries: 2","type":"internal_server_error","param":null,"code":"503"}}

25. GET /get/config/callbacks, config file emptied

  1. Empty the proxy's config file in place, then restore it right after the call

  2. Run:

curl -sS "$PROXY/get/config/callbacks" -H "Authorization: Bearer $LITELLM_MASTER_KEY"
  1. Observed, HTTP 500:
{"error":{"message":"Config cannot be None or Empty.","type":"internal_server_error","param":null,"code":"500"}}

26. POST /key/update, team table locked

  1. Run:
curl -sS -o /dev/null -X POST "$PROXY/team/new" -H "Authorization: Bearer $LITELLM_MASTER_KEY" -H 'Content-Type: application/json' -d "{\"team_id\":\"qa-team-stall-$RUN\"}"
KEY=$(curl -sS -X POST "$PROXY/key/generate" -H "Authorization: Bearer $LITELLM_MASTER_KEY" -H 'Content-Type: application/json' -d "{\"team_id\":\"qa-team-stall-$RUN\"}" | jq -r .key)
  1. From another session, hold the team table locked for 25 seconds:
psql "$DATABASE_URL" -c 'BEGIN; LOCK TABLE "LiteLLM_TeamTable" IN ACCESS EXCLUSIVE MODE; SELECT pg_sleep(25); COMMIT;' &
  1. Run:
curl -sS -X POST "$PROXY/key/update" -H "Authorization: Bearer $LITELLM_MASTER_KEY" -H 'Content-Type: application/json' \
  -d "{\"key\":\"$KEY\",\"max_budget\":5}"
  1. Observed, HTTP 503:
{"error":{"message":"Service Unavailable, the authentication database is temporarily unreachable. Please retry shortly.","type":"no_db_connection","param":null,"code":"503"}}

27. POST /queue/chat/completions, Anthropic answers 404

  1. Run:
curl -sS -o /dev/null -X POST "$PROXY/model/new" -H "Authorization: Bearer $LITELLM_MASTER_KEY" -H 'Content-Type: application/json' \
  -d "{\"model_name\":\"qa-retired-$RUN\",\"litellm_params\":{\"model\":\"anthropic/claude-retired-qa-$RUN\",\"api_key\":\"os.environ/ANTHROPIC_API_KEY\"}}"
  1. Wait until six GET /v1/models calls in a row list qa-retired-$RUN, a model name Anthropic does not serve, so both workers have it

  2. Run:

curl -sS -X POST "$PROXY/queue/chat/completions" -H "Authorization: Bearer $LITELLM_MASTER_KEY" -H 'Content-Type: application/json' \
  -d "{\"model\":\"qa-retired-$RUN\",\"messages\":[{\"role\":\"user\",\"content\":\"hi\"}],\"priority\":0}"
  1. Observed, HTTP 404:
{"error":{"message":"litellm.NotFoundError: AnthropicException - {\"type\":\"error\",\"error\":{\"type\":\"not_found_error\",\"message\":\"model: claude-retired-qa-1793247827\"},\"request_id\":\"req_011CgVthVsLNbQykLsqKDeGh\"}\n\nLiteLLM: model group 'qa-retired-1793247827' failed with the error above. No fallback was attempted.","type":"invalid_request_error","param":null,"code":"404"}}

28. POST /queue/chat/completions, Anthropic answers

  1. Run:
curl -sS -X POST "$PROXY/queue/chat/completions" -H "Authorization: Bearer $LITELLM_MASTER_KEY" -H 'Content-Type: application/json' \
  -d '{"model":"claude-haiku-5-5","messages":[{"role":"user","content":"Reply with the single word pong"}],"priority":0,"max_tokens":10}'
  1. Observed, HTTP 200:
{"id":"chatcmpl-0a64007e-6cf4-499a-a2c5-cea0fd718275","created":1793247869,"model":"claude-haiku-5-5","object":"chat.completion","system_fingerprint":null,"choices":[{"finish_reason":"stop","index":0,"message":{"content":"Pong","role":"assistant","tool_calls":null,"function_call":null,"provider_specific_fields":{"citations":null,"thinking_blocks":null}}}],"usage":{"completion_tokens":5,"prompt_tokens":17,"total_tokens":22,"completion_tokens_details":{"accepted_prediction_tokens":null,"audio_tokens":null,"reasoning_tokens":0,"rejected_prediction_tokens":null,"text_tokens":5,"image_tokens":null,"video_tokens":null},"prompt_tokens_details":{"audio_tokens":null,"cached_tokens":0,"text_tokens":17,"image_tokens":null,"video_tokens":null,"initial_prompt_tokens":null,"cache_write_tokens":0,"cache_creation_tokens":0,"cache_creation_token_details":{"ephemeral_5m_input_tokens":0,"ephemeral_30m_input_tokens":null,"ephemeral_1h_input_tokens":0,"ephemeral_12h_input_tokens":null}},"cache_creation_input_tokens":0,"cache_read_input_tokens":0,"iterations":null,"inference_geo":"global","speed":"standard","service_tier":"standard"}}

29. POST /model/new, database host unreachable

  1. Keep the forwarder stopped from case 21

  2. Run:

curl -sS -X POST "$PROXY/model/new" -H "Authorization: Bearer $LITELLM_MASTER_KEY" -H 'Content-Type: application/json' \
  -d '{"model_name":"qa-outage-model","litellm_params":{"model":"anthropic/claude-haiku-5-5","api_key":"os.environ/ANTHROPIC_API_KEY"}}'
  1. Observed, HTTP 503:
{"error":{"message":"Service Unavailable, the authentication database is temporarily unreachable. Please retry shortly.","type":"no_db_connection","param":null,"code":"503"}}

30. POST /queue/chat/completions, Anthropic rejects the key

  1. Run:
curl -sS -o /dev/null -X POST "$PROXY/model/new" -H "Authorization: Bearer $LITELLM_MASTER_KEY" -H 'Content-Type: application/json' \
  -d "{\"model_name\":\"qa-badkey-$RUN\",\"litellm_params\":{\"model\":\"anthropic/claude-haiku-5-5\",\"api_key\":\"sk-ant-api03-revoked-qa-$RUN\"}}"
  1. Wait until six GET /v1/models calls in a row list qa-badkey-$RUN, a claude-haiku-5-5 deployment with an Anthropic key Anthropic rejects, so both workers have it

  2. Run:

curl -sS -X POST "$PROXY/queue/chat/completions" -H "Authorization: Bearer $LITELLM_MASTER_KEY" -H 'Content-Type: application/json' \
  -d "{\"model\":\"qa-badkey-$RUN\",\"messages\":[{\"role\":\"user\",\"content\":\"hi\"}],\"priority\":0,\"max_tokens\":10}"
  1. Observed, HTTP 401:
{"error":{"message":"litellm.AuthenticationError: AnthropicException - {\"type\":\"error\",\"error\":{\"type\":\"authentication_error\",\"message\":\"invalid x-api-key\"},\"request_id\":\"req_011CgVtjftQ1zzNT6sAniWp7\"}\n\nLiteLLM: model group 'qa-badkey-1793247871' failed with the error above. No fallback was attempted.","type":"authentication_error","param":null,"code":"401"}}

31. POST /key/update, database failed over to read-only

  1. Run:
KEY=$(curl -sS -X POST "$PROXY/key/generate" -H "Authorization: Bearer $LITELLM_MASTER_KEY" -H 'Content-Type: application/json' -d '{}' | jq -r .key)
  1. Switch the proxy's database to read-only and end its open sessions, the way a primary demoted during a failover behaves:
psql "$ADMIN_URL" -c "ALTER DATABASE \"$DB\" SET default_transaction_read_only = on"
psql "$ADMIN_URL" -c "SELECT pg_terminate_backend(pid) FROM pg_stat_activity WHERE datname='$DB'"
  1. Run:
curl -sS -X POST "$PROXY/key/update" -H "Authorization: Bearer $LITELLM_MASTER_KEY" -H 'Content-Type: application/json' \
  -d "{\"key\":\"$KEY\",\"max_budget\":5}"
  1. Observed, HTTP 503:
{"error":{"message":"Service Unavailable, the authentication database is temporarily unreachable. Please retry shortly.","type":"no_db_connection","param":null,"code":"503"}}

32. POST /key/update, reconnected read-only session

  1. Keep the database read-only from case 31, so the next call runs on a reconnected session that rejects writes

  2. Run:

curl -sS -X POST "$PROXY/key/update" -H "Authorization: Bearer $LITELLM_MASTER_KEY" -H 'Content-Type: application/json' \
  -d "{\"key\":\"$KEY\",\"max_budget\":5}"
  1. Observed, HTTP 503:
{"error":{"message":"Service Unavailable, the authentication database is temporarily unreachable. Please retry shortly.","type":"no_db_connection","param":null,"code":"503"}}

Observations from the run:

  • Queue BadRequestError answers already said invalid_request_error
  • A queued provider 401 now matches /chat/completions
  • A queued call right after /model/new once found no deployment
/live-pr-risk report

Verdict at 1bd8ecf: nothing breaks. Every dependent the run reached answers as on c7c895d apart from the relabels below

Breaking. None observed

Backward incompatible

  • The 13 handlers' 400, 404 and 500 errors say invalid_request_error or internal_server_error, not auth_error. Asked for by the PR's owner in the ticket behind this PR
  • param is null, not "None". The ticket's After body asks for the OpenAI shape, which types param as nullable
  • Database outages and failovers answer 503 no_db_connection, so the dashboard's key edit toast says the database is unreachable where main showed a NoneType error. The auth path already answers 503 for an outage, and the owner's standing rule says an existing convention settles this
  • Queued upstream failures and errors that carry their own status answer that status, as /chat/completions already does, settled by the same rule

Regression risk

  • The OTel management failure hook gets the new type. No OTel backend was in the rig
  • The /queue/chat/completions latency metric buckets by the new status
  • team_member_update reaches team_info's 404 only if the team vanishes between its two reads
  • The dashboard retries /team/info on 500 and 503 through React Query

Dependency graph

  • Tested: 56 management, authorization and configuration integration files plus 3 security files on the head rig, 1,492 passing. Every red was one of the 12 stale auth_error and "None" expectations updated in 873d6df, passed on a head rerun, or failed on base the same way, like the /openapi.json read timeouts in the stored config slot tests
  • Verified live on both legs: bulk user create with a missing org, the Python client's keys.update on a missing key, /login across a read-only failover, and the dashboard key edit during a failover
  • Unreachable: the four regression risk items above

Carried to 9f25ff8. 873d6df changes only integration test expectations, and the 12 updated tests pass on the head rig. 9f25ff8 merges main at 83ae1bd, whose only conflict was two new tests added at the end of the same file. Both QA legs ran again on the merged tree and its new base, every case answers as it did at 1bd8ecf except two /chat/completions comparison calls that router cooldown decides, and the unit tests of the merged files pass

Not verified. The OTel hook, the queue metric and the React Query retry, for want of an OTel backend and a metrics scrape in the rig

Type

🐛 Bug Fix

Caveats (if any)

Low

  • Outages and failovers answer 503, so 5xx retry rules fire, like the auth path
  • An outage 503 on POST /model/new says to retry, and SDKs already retried main's 500 there
  • An error that carries its own status keeps it, so a /health/services webhook timeout answers 408, not 500
  • An upstream 408 still says invalid_request_error, as on main
  • Tracked separately are about 60 shared-handler routes keeping their labels, the "authentication database" outage text, and a duplicate model id answering 500 on both legs
  • OSV Scan is red, same as main at 57c1df8 (run)

Final Attestation

  • The tests check the right things, including the edge cases, and regressions in the respective real-world customer use-cases are not possible after this PR
Bugbot summary

[!NOTE]
High Risk
Intentional breaking change to error type, param, and HTTP status on many admin routes; clients and retry logic that keyed off auth_error or old 400/500 outage behavior need review.

Overview
Breaking: Management, health, config, and queue routes no longer wrap every failure as type: auth_error with an Authentication Error, prefix and param: "None". Shared proxy_exception_for in openai_error_payload.py now shapes OpenAI-style errors from the raised exception’s status and message.

Validation and not-found cases (bad budget_duration, missing team/org/model, unknown health service) answer with invalid_request_error and JSON param: null. Real proxy 401/403 rejections still use auth_error. Server/config failures use internal_server_error. Upstream statuses (e.g. provider 401/404/503 on queued completions) are preserved instead of being forced to 400.

Database outages and failovers (Prisma unreachable, lookup deadline, read-only Postgres, failover SQLSTATEs/phrases) map to 503 with no_db_connection and a generic retry message, including when a route would otherwise return 404 during a stall. Router deployment messages still remap to 429 / 401 via extracted proxy_exception_status_code.

Catch-all handlers across team/key/user/org/model health and proxy_server config/queue paths were replaced with this helper; exception_chain was exported for outage detection. Tests and integration expectations were updated for the new labels and null param.

Reviewed by Cursor Bugbot for commit 9f25ff8. Bugbot is set up for automated code reviews on this repo. Configure here.

…es with 503 in route catch-alls

/key/list and /key/aliases now share the catch-all helper too, so they stop
adding the Authentication Error prefix and typing a 400 as internal_server_error
…ror_types_main

# Conflicts:
#	tests/unit/proxy/health_endpoints/test_health_endpoints.py
#	tests/unit/proxy/management_endpoints/test_key_management_endpoints.py
#	tests/unit/proxy/management_endpoints/test_organization_endpoints.py
#	tests/unit/proxy/test_proxy_server.py
@mateo-berri mateo-berri changed the title fix(proxy): stop labelling management and health rejections as auth failures fix(proxy)!: stop labelling management and health rejections as auth failures Oct 28, 2026
@codspeed

codspeed Bot commented Oct 28, 2026 •

Copy link
Copy Markdown
Contributor

Merging this PR will not alter performance

1 warning

⚠️ 1 benchmark is dominated by system calls

System calls cannot be simulated consistently and are left out of the measure. The reported value understates the real cost. Switch to the Walltime instrument to measure them.

Learn more about system calls

See affected benchmarks

✅ 37 untouched benchmarks


Comparing tavren27:litellm_management_error_types_main (9f25ff8) with main (be649f6)

Open in CodSpeed

…ails to name the error

A real outage surfaces from prisma's query engine as a builtin AttributeError, which the
prisma-module check skipped, so the route catch-alls still answered 500 or 400
@mateo-berri

Copy link
Copy Markdown
Contributor

@litereview code-review

@mateo-berri

Copy link
Copy Markdown
Contributor

@greptileai

@greptile-apps

greptile-apps Bot commented Oct 28, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[High impact] The PR appears safe to merge with the intended error-response changes

Summary

The PR replaces repeated error wrappers with proxy_exception_for. Management and health errors now use their status to choose a type, while database outages return 503 and queued provider errors keep their own status

No new actionable issues were found. The previous code findings are addressed by the Prisma guard, exception-chain checks, real-router test, and typed test additions

mateo-berri accepted the remaining live-provider 503 proof gap because a real provider cannot reliably return 503 on demand. The PR retains a local 503 test and adds real Anthropic failure cases. The description also records a live rerun on the merged head

  • Proxy routes label caught errors by status while keeping real access rejections distinct.
  • Database outages and failover refusals return 503 instead of request errors.

Reviews (8) · Last reviewed commit: "Merge remote-tracking branch 'origin/mai..." · Reviewed by Greptile

@codecov

codecov Bot commented Oct 28, 2026 •

Copy link
Copy Markdown

@mateo-berri

Copy link
Copy Markdown
Contributor

@greptileai

Comment thread tests/unit/proxy/test_proxy_server.py Resolved
Comment thread tests/unit/proxy/test_proxy_server.py Resolved
Comment thread tests/unit/proxy/test_proxy_server.py Resolved
@greptile-apps

greptile-apps Bot commented Oct 28, 2026

Copy link
Copy Markdown
Contributor

Want your agent to iterate on Greptile's feedback? Try greploops.

…ror on tag denials, report model insert outages as 503
@mateo-berri

Copy link
Copy Markdown
Contributor

@greptileai

… errors like chat

A database that refuses connections while starting up, shutting down, in
recovery, or read-only after a failover now answers 503 no_db_connection
instead of 400. A provider's 401 or 403 keeps the type /chat/completions
gives it, while a 401 or 403 the proxy raises keeps auth_error. An
exception with no message is named by its type.
@mateo-berri

Copy link
Copy Markdown
Contributor

@greptileai

@mateo-berri

Copy link
Copy Markdown
Contributor

@greptileai

…sals

Team-not-found 404s now answer invalid_request_error, and every handler-raised refusal answers param null instead of the string None.
@mateo-berri

Copy link
Copy Markdown
Contributor

@greptileai

Comment thread tests/unit/proxy/test_proxy_server.py Resolved
@mateo-berri

Copy link
Copy Markdown
Contributor

@greptileai

@mateo-berri

Copy link
Copy Markdown
Contributor

bugbot run

@cursor cursor Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Stale Bugbot comment from a previous run.

…ror_types_main

# Conflicts:
#	tests/unit/proxy/test_proxy_server.py
@mateo-berri

Copy link
Copy Markdown
Contributor

@greptileai

@mateo-berri

Copy link
Copy Markdown
Contributor

bugbot run

@cursor cursor Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Bugbot reviewed your changes and found no new issues!

Comment @cursor review or bugbot run to trigger another review on this PR

Reviewed by Cursor Bugbot for commit 9f25ff8. Configure here.

@mateo-berri mateo-berri left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@mateo-berri
mateo-berri merged commit cbf4e40 into BerriAI:main Oct 29, 2026
109 of 111 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants